tags:
  - dns
summary: 查询dns
description: 查询dns
operationId: "{{ uniqueOpId() }}"
requestBody:
  content:
    application/json:
      schema:
        type: object
        properties:
          token:
            type: string
            description: 访问令牌
          addr:
            type: string
            description: 查询地址
responses:
  "200":
    description: 成功
    content:
      application/json:
        schema:
          type: object
          properties:
            a:
              type: array
              items:
                type: string
              description: A记录列表
            cname:
              type: string
              description: CNAME记录
            mx:
              type: array
              items:
                type: object
                properties:
                  host:
                    type: string
                  pref:
                    type: integer
              description: MX记录列表
            txt:
              type: array
              items:
                type: string
              description: TXT记录列表
  "500":
    description: 失败
    content:
      application/json:
        schema:
          $ref: "@schemas/errInfo.yml.njk"
